<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: /HElib/src/binaryCompare.cpp File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">binaryCompare.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Implementing integer comparison in binary representation.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;NTL/BasicThreadPool.h&gt;</code><br />
<code>#include &lt;<a class="el" href="binary_arith_8h_source.html">helib/binaryArith.h</a>&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacehelib"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html">helib</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a80e8cb52c5006048c742adf05e25a2d1"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="binary_compare_8cpp.html#a80e8cb52c5006048c742adf05e25a2d1">BPL_ESTIMATE</a>&#160;&#160;&#160;(30)</td></tr>
<tr class="separator:a80e8cb52c5006048c742adf05e25a2d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3ec4c5776cc1a48bb6d6a3ae4e64a4b7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a3ec4c5776cc1a48bb6d6a3ae4e64a4b7">helib::runningSums</a> (CtPtrs &amp;v)</td></tr>
<tr class="separator:a3ec4c5776cc1a48bb6d6a3ae4e64a4b7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa6a682bb0c0c84f0d6eaddde8fd2f8b9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#aa6a682bb0c0c84f0d6eaddde8fd2f8b9">helib::compareTwoNumbersImplementation</a> (CtPtrs &amp;max, CtPtrs &amp;min, Ctxt &amp;mu, Ctxt &amp;ni, const CtPtrs &amp;aa, const CtPtrs &amp;bb, bool twosComplement, std::vector&lt; zzX &gt; *unpackSlotEncoding, bool cmp_only)</td></tr>
<tr class="separator:aa6a682bb0c0c84f0d6eaddde8fd2f8b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2eda8a61661cec76566fb5c6f475eb24"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a2eda8a61661cec76566fb5c6f475eb24">helib::compareTwoNumbers</a> (CtPtrs &amp;max, CtPtrs &amp;min, Ctxt &amp;mu, Ctxt &amp;ni, const CtPtrs &amp;a, const CtPtrs &amp;b, bool twosComplement=false, std::vector&lt; zzX &gt; *unpackSlotEncoding=nullptr)</td></tr>
<tr class="memdesc:a2eda8a61661cec76566fb5c6f475eb24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two integers in binary <code>a</code>, <code>b</code>. Returns <code>max(a, b)</code>, <code>min(a, b)</code> and indicator bits <code>mu</code>=(<code>a</code>&gt;<code>b</code>) and <code>ni</code>=(<code>a</code>&lt;<code>b</code>)  <a href="namespacehelib.html#a2eda8a61661cec76566fb5c6f475eb24">More...</a><br /></td></tr>
<tr class="separator:a2eda8a61661cec76566fb5c6f475eb24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7d423993b1ba7f3a05bb0184d6e5dd8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ad7d423993b1ba7f3a05bb0184d6e5dd8">helib::compareTwoNumbers</a> (Ctxt &amp;mu, Ctxt &amp;ni, const CtPtrs &amp;a, const CtPtrs &amp;b, bool twosComplement=false, std::vector&lt; zzX &gt; *unpackSlotEncoding=nullptr)</td></tr>
<tr class="memdesc:ad7d423993b1ba7f3a05bb0184d6e5dd8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compares two integers in binary <code>a</code>, <code>b</code>. Returns only indicator bits <code>mu</code>=(<code>a</code>&gt;<code>b</code>) and <code>ni</code>=(<code>a</code>&lt;<code>b</code>).  <a href="namespacehelib.html#ad7d423993b1ba7f3a05bb0184d6e5dd8">More...</a><br /></td></tr>
<tr class="separator:ad7d423993b1ba7f3a05bb0184d6e5dd8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Implementing integer comparison in binary representation. </p>
</div><h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a80e8cb52c5006048c742adf05e25a2d1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80e8cb52c5006048c742adf05e25a2d1">&#9670;&nbsp;</a></span>BPL_ESTIMATE</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define BPL_ESTIMATE&#160;&#160;&#160;(30)</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
